/**
  * 首页公告
  */
.rightCompileStyle {
  :global {
    // padding: 0px 1.5rem;
    width: 100%;

    .ant-list-items {
      padding: 0px 5px;
    }

    .ant-list-item {
      padding-bottom: 0px;
      padding-left: 1.5rem;
      padding-right: 1.5rem;
      position: relative;
    }

    .ant-list-item:hover {
      transform: scale(1.01);
      background-color: #f4f4f4;
      cursor: pointer;
    }
  }
}

.iconIsTop {
  :global {
    position: absolute;
    top: -13px;
    right: 0px;

    .one-icon {
      font-size: 40px;
    }
  }
}

.overflow() {
  overflow-y: hidden;
  overflow-x: hidden;
}

.displayDirection() {
  display: flex;
  flex-direction: column;
}

@prefix-cls: announcehome-preview;

.@{prefix-cls} {
  &-row {
    width: 100%;
    height: 100%;
    .overflow();

    &-col {
      width: 100%;
      height: 100%;
      .overflow();

      &-divBox {
        background-color: #ffffff;
        width: 100%;
        height: 100%;
      }
    }
  }

  /**
  * 公告详情样式
  */

  &-announceDetail {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;

    .ant-divider {
      margin: 5px 0px;
      background: #e8e8e8;
    }

    &-title {
      font-size: 1.5rem;
      text-align: center;
    }

    &-titleRightCol {
      display: flex;
      justify-content: center;
      align-items: center;
      cursor: pointer;
      white-space: nowrap;
    }

    &-content {
      color: #989898;
      padding: 0px 5px;
      width: 100%;
      display: flex;
      justify-content: center;

      // span {
      //   margin-right: 30px;
      // }
    }

    &-scrollBox {
      width: 100%;
      height: 100%;
      flex: auto;
      overflow: hidden;
    }
  }

  /**
    *  文件列表样式
    */
  &-fileListBox {
    display: flex;
    padding: 15px 10px;
    border: 1px solid #e4e4e4;
    // background-color: #f9f9f9;

    &-labelText {
      white-space: nowrap;
      font-size: 16px;
      font-weight: 700;
    }

    &-row {
      width: 100%;
      font-size: 16px;
    }
  }

  /**
   *  公告详情角标置顶样式
   */
  &-cardExtra {
    .ant-card-extra {
      position: relative;
    }

    &-iconIsTop {
      position: absolute;
      font-size: 45px;
      top: -36px;
      right: -16px;
    }
  }

  /*
  * 卡片头部
  */
  &-cardHead {
    .ant-card-head {
      background-color: #f9f9f9;
    }
  }

  /**
  *  公告详情下方列表按钮
  */
  // &-announceBottom {
  //   padding: 5px 20px;
  //   margin-top: 5px;
  // }

  /*
  * 右侧预览信息抽屉
  */
  &-rightViewStyles {
    width: 100%;

    .ant-list-items {
      padding: 0px 5px;
    }

    .ant-list-item {
      // padding-bottom: 0px;
      position: relative;
    }

    // .ant-list-item:hover {
    //   transform: scale(1.01);
    //   background-color: #f4f4f4;
    //   cursor: pointer;
    // }
  }

  /**
  *  返回顶部样式
  */
  &-backTopStyle {
    position: absolute;
    bottom: 60px;
    right: 20px;

    &-circleDiv {
      height: 50px;
      width: 50px;
      border-radius: 50%;
      border: 1px solid #464646;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      background-color: rgba(61, 61, 61, 0.7);
      cursor: pointer;

      div {
        color: #ffffff;
        font-size: 12px;
      }

      .anticon {
        transform: rotate(90deg);
        font-size: 26px;
        color: #fff;
      }
    }
  }

  &-fileAnimation {
    animation: shakeAnimae 0.8s infinite;
    background-color: #f4f4f4;
  }
}

/**
  * 公告详情样式
  */

.announceDetail {
  :global {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;

    .ant-divider {
      margin: 5px 0px;
      background: #e8e8e8;
    }
  }

  &-title {
    font-size: 18px;
    text-align: center;
    font-weight: 600;
  }

  &-titleRightCol {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    white-space: nowrap;
  }

  &-content {
    color: #989898;
    padding: 0px 5px;
    width: 100%;
    display: flex;
    justify-content: center;

    // span {
    //   margin-right: 30px;
    // }
  }

  &-scrollBox {
    width: 100%;
    height: 100%;
    flex: auto;
    overflow: hidden;
  }
}

@keyframes shakeAnimae {
  0% {
    transform: translate(0px, 0px);
  }

  50% {
    transform: translate(0px, -10px);
  }

  100% {
    transform: translate(0px, 0px);
  }
}